package edu.biwu.sms.Annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.FIELD)//用于校验字段值是否合法
@Retention(RetentionPolicy.RUNTIME)//在运行时可以反射获取
public @interface Validate {
String regex() default "";
int  min() default  0;
int  max()default  100;
}
